package com.tanhua.dubbo.api;


import java.util.List;


import com.tanhua.model.mongo.UserLike;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import com.tanhua.model.mongo.UserLike;

import java.util.List;

public interface UserLikeApi {

    //保存或者更新
    Boolean saveOrUpdate(Long userId, Long likeUserId, boolean isLike);


    //根据用户的id查询喜欢的人的id
    List<Long> findUserLike(Long userId, boolean flag);

    //根据用户的id查询喜欢自己的用户id
    List<Long> findFans(Long userId, boolean flag);



    UserLike whetherLike(Long userId, Long likeUserId);


    List<UserLike> otherLike(Long userId);

    List<UserLike> like(Long userId);

    List<UserLike> likeMe(Long userId);

    void fansLike(Long userId, Long fansUserId);

    void notLike(Long userId, Long likeUserId);

    Map counts(Long userId, Map count);

    List<UserLike> findById(Long userId);
}
